package models

import "time"

// 校车通知
type SchoolBusNotice struct {
	Id               int64     `orm:"description(自增主键)"`
	Device           *Device   `orm:"rel(fk);null;default(0);description(设备Id)" json:"-"`
	Student          *Student  `orm:"rel(fk);null;default(0);description(学生Id)" json:"-"`
	IsUp             int       `orm:"description(是否上车，0未上车 1已上车)"`
	IsDown           int       `orm:"description(是否下车，0未下车 1已下车)"`
	UpTime           time.Time `orm:"type(datetime);description(上车时间)" json:"-"`
	UpTimeShow       string    `orm:"-" json:"-"`
	UpTimeShowDate   string    `orm:"-"`
	UpTimeShowTime   string    `orm:"-"`
	DownTime         time.Time `orm:"type(datetime);null;description(下车时间)" json:"-"`
	DownTimeShow     string    `orm:"-" json:"-"`
	DownTimeShowDate string    `orm:"-"`
	DownTimeShowTime string    `orm:"-"`
	CreatedDate      time.Time `orm:"auto_now_add;type(date);description(创建日期)" json:"-"`
	Created          time.Time `orm:"auto_now_add;type(datetime);description(创建时间)" json:"-"`
	StudentName      string    `orm:"-"`
}
